# -*- coding: utf-8 -*-
"""
-------------------------------------------------
# @Project  :data_visualization
# @File     :scatter_squares.py
# @Date     :2021/7/8 20:22
# @Author   :逆羽
# @Email    :xiehouxiayu@163.com
# @IDE      :PyCharm
-------------------------------------------------
"""
import matplotlib.pyplot as plt

x_values = list(range(1, 1001))
y_values = [x_value ** 2 for x_value in x_values]
# plt.scatter(x_values, y_values, c='red', edgecolors='none', s=40)
# plt.scatter(x_values, y_values, c=(0, 0, 0.8), edgecolors='none', s=40)
plt.scatter(x_values, y_values, c=y_values, cmap=plt.cm.Blues, edgecolors='none', s=40)
plt.title("Squares Numbers", fontsize=24)
plt.xlabel('Value', fontsize=14)
plt.ylabel("Square of Value", fontsize=14)
plt.tick_params(axis='both', which='major', labelsize=14)
plt.axis([0, 1100, 0, 1100000])
plt.show()
plt.savefig('Squares_plot.png', bbox_inches='tight')
